import {User} from '@/model/UserClass';

export const enum ApiCode {
  Success = 200,
  Fail = 100,
  TokenExpired = 101,
  NoPermission = 400,
  NotLogin = 103,
}

export class ApiResponse<T> {
  public code!: ApiCode;
  public msg!: string | null;
  public result!: T;
}

export class ApiAuthUser {
  public apiUser!: User;
  public token!: string;
}
